package com.hzhjhh.enums;

import java.util.Arrays;
import java.util.Map;
import java.util.stream.Collectors;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 用户等级枚举
 */
@Getter
@AllArgsConstructor
public enum UserTypeEnum {
	
	idMerchandise("idMerchandise", "商品编码"),
	merchandiseTreatyCode("merchandiseTreatyCode", "条形码"),
	merchandiseSortId("merchandiseSortId", "类别编号"),
	merchandiseName("merchandiseName", "商品名称"),
	merchandiseRetailPrice("merchandiseRetailPrice", "零售价(元)"),
	merchandiseSpec("merchandiseSpec", "商品规格"),
	merchandiseUnits("merchandiseUnits", "计量单位"),
	merchandisePurchasePrice("merchandisePurchasePrice", "进货价"),
//	merchandiseCheckTerm("merchandiseCheckTerm", "保质期"),
	merchandiseRemark("merchandiseRemark", "备注"),
	;

	/**
	 * 列名称
	 */
	private final String cloumnName;
	/**
	 * 列展示时对应的名称
	 */
	private final String cloumnShowName;

	
	public static Map<String, String> toMap() {
		return Arrays.asList(UserTypeEnum.values())
		.stream()
		.collect(Collectors.toMap(UserTypeEnum::getCloumnName, UserTypeEnum::getCloumnShowName, (v1, v2) -> v1));
	}
}